package cn.thinkjoy.social.digest.api;

import cn.thinkjoy.common.domain.SearchFilter;
import cn.thinkjoy.common.domain.view.BizData4Page;
import cn.thinkjoy.common.protocol.RequestT;
import cn.thinkjoy.common.protocol.ResponseT;
import cn.thinkjoy.social.dto.ShareDigestDTO;
import retrofit.Callback;
import retrofit.http.*;

/**
 * Created by jzli on 15/4/24.
 */
public interface IShareDigestService {

    /**
     * 根据条件查询精彩分享列表
     * @param token
     * @param searchFilter
     * @param callBack
     */
    @POST("/share/digests")
    void shareDigests(@Query("access_token") String token, @Body RequestT<SearchFilter> searchFilter, Callback<ResponseT<BizData4Page<ShareDigestDTO>>> callBack);

    /**
     * 根据id查询精彩分享详细
     * @param token
     * @param shareId
     * @param callBack
     */
    @GET("/share/digest/{shareId}")
    void shareDigest(@Query("access_token") String token, @Path("shareId") long shareId, Callback<ResponseT<ShareDigestDTO>> callBack);
}
